package com.hxrfid.project.domain.bo;

import com.hxrfid.common.core.domain.BaseEntity;
import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 礼品卡管理业务对象 bs_gift
 *
 * @author hxrfid
 * @date 2025-06-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BsGiftBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 套餐
     */
    @NotBlank(message = "套餐不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 商品主图集
     */
    @NotBlank(message = "商品主图集不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mainImages;

    /**
     * 商品标题集
     */
    @NotBlank(message = "商品标题集不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mainDesc;

    /**
     * 价格
     */
    @NotNull(message = "价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 下划价
     */
    @NotNull(message = "下划价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal underlinePrice;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 备注
     */
    private String remark;


}
